class MusicPlayer(object):
    def __new__(cls, *args, **kwargs):
        print("创建对象,分配空间")
        instance = super().__new__(cls) # 创建对象,分配空间
        print(id(instance))
        return instance

    def __init__(self):
        print("初始化对象,给对象绑定属性")
        self.name = "播放器"


if __name__ == '__main__':
    player1 = MusicPlayer()
    print("-" * 20)
    print(id(player1))
